package com.dongdongshop.service.impl;

import com.dongdongshop.mapper.TbGoodsDescMapper;
import com.dongdongshop.pojo.TbGoodsDesc;
import com.dongdongshop.service.GoodsDescService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@DubboService
public class GoodsDescServiceImpl implements GoodsDescService {

    @Resource
    private TbGoodsDescMapper goodsDescMapper;

    //根据主键查询商品详细信息
    @Override
    public TbGoodsDesc getGoodsDescById(Long id) {
        return goodsDescMapper.selectByPrimaryKey(id);
    }
}
